package cevent.source.cloudcenter.system.config;/**
 * Created by Cevent on 2021/2/19.
 */

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

/**
 * @author cevent
 * @description  指定spring扫描该包下所有类：@ComponentScan("package.path")
 * @date 2021/2/19 15:00
 */

@SpringBootApplication
//@EnableEurekaClient
@EnableDiscoveryClient
@MapperScan(value = {"cevent.source.cloudcenter.server.mapper"})
@ComponentScan("cevent.source.cloudcenter")
public class SystemApplication {
    private static final Logger LOG= LoggerFactory.getLogger(SystemApplication.class);

    public static void main(String[] args) {
        SpringApplication application=new SpringApplication(SystemApplication.class);
        Environment environment=application.run(args).getEnvironment();
        LOG.info("系统模块system启动");
        LOG.info("system地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    }
}
